from django.db import models
from django.contrib import admin

class Project(models.Model):
    PROJECT_TYPE = (
        ("IN", "Inline"),
        ("DESC", "Description"),
    )
    
    project_name = models.TextField(max_length=250)
    description = models.TextField(max_length=1000)
    type = models.CharField(max_length=10, choices=PROJECT_TYPE, verbose_name="project type")
    link_to_project = models.URLField(max_length=250, blank=True)
    uploaded = models.DateField()    
#    icon = models.ImageField(upload_to="project_icons/")
    total_comments = models.IntegerField(blank=True, null=True)
    
    def __unicode__(self):
        return self.project_name